package com.yueshang.neuron.core.warpper;

import com.yueshang.framework.base.BaseControllerWarpper;
import com.yueshang.neuron.core.factory.ConstantFactory;

import java.util.List;
import java.util.Map;

/**
 * 用户管理的包装类
 *
 * @author shililu
 * @date 2018-08-30
 */
public class RoleWarpper extends BaseControllerWarpper{

    public RoleWarpper(List<Map<String, Object>> list) {
        super(list);
    }

    public RoleWarpper(Object object) {
        super(object);
    }

    @Override
    protected void warpTheMap(Map<String, Object> map) {
        map.put("stationStr", ConstantFactory.me().getSationName((Integer)(map.get("station_flag"))));
    }
}
